home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
e
/
misc.txt
/
000136_fdc@panix.com_Fri Dec 14 12:49:57 2007.msg
< prev
next >
Wrap
Internet Message Format
|
2018-01-01
|
3KB
Path: reader1.panix.com!panix!not-for-mail
From: Frank da Cruz <fdc@panix.com>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Screen Capture
Date: Fri, 14 Dec 2007 17:49:47 +0000 (UTC)
Organization: PANIX Public Access Internet and UNIX, NYC
Lines: 41
Message-ID: <slrnfm5ghr.8om.fdc@panix3.panix.com>
References: <h654j.66697$RX.26340@newssvr11.news.prodigy.net> <13l6v29jqcmhl2e@corp.supernews.com> <g3J7j.77732$YL5.57974@newssvr29.news.prodigy.net> <13m3fqgakmrkc05@corp.supernews.com> <XWm8j.7512$AR7.2068@nlpi070.nbdc.sbc.com>
Reply-To: fdc@columbia.edu
NNTP-Posting-Host: panix3.panix.com
X-Trace: reader1.panix.com 1197654587 26094 166.84.1.3 (14 Dec 2007 17:49:47 GMT)
X-Complaints-To: abuse@panix.com
NNTP-Posting-Date: Fri, 14 Dec 2007 17:49:47 +0000 (UTC)
User-Agent: slrn/0.9.8.0 (NetBSD)
Xref: panix comp.protocols.kermit.misc:15718
On 2007-12-14, 2damn <2damn@nospam.com> wrote:
: My current self made project is to use kermit to automate some tasks on
: serial connections to a company system. Just to speed things up and save
: some carpal tunnel. I do not have and will not have any sort of
: administrator rights on the company system. I am just trying to have the
: kermit input and output commands run repetitive tasks. The problem is
: there are many exceptions to default scenarios and I think kermit can
: deal with them.
:
C-Kermit can handle text-mode dialogs just fine, and for that matter also
menu-driven dialogs, if you can do this without specific reference to screen
positions and coordinates. For example, the host application paints a
manu and at the bottom it prints "Choice?" and the user is supposed to enter
the number (or whatever) of the desired menu item. Well, if "Choice?" is
the last thing that the host sends (which is something you can tell from
a session log), then:
clear input
input 10 Choice?
if failure (do something)
output 3\13
is all you need for waiting for the menu to paint itself (assuming it does
so within 10 seconds) and to choose menu item number 3.
On the other hand, if you really need to reference specific screen
coordinates or the contents of specifi screen fields
, you can do this with Kermit 95 on Windows because, unlike
C-Kermit, in incorporates its own terminal emulator and knows what is on the
screen and where.
Perhaps if you describe a typical session of the type you want to automate,
I can show you how to do it. Meanwhile, take a look at the brief Kermit
scripting tutorial here:
http://kermit.columbia.edu/ckscripts.html
and the many sample scripts that are included in the script library, listed
on the same page.
- Frank